<template>
	<view class="item">
		<view class="content">
			<view class="left">
				<image class="left-icon" :src="item.type === 0 ? '/static/commenmoration/dangao.png' 
				: '/static/commenmoration/love.png'"></image>
				<view class="desc">{{item.name + (item.displayType===0? '还有' : '已有')}}</view>
			</view>
			<view class="right">
				<text v-if="item.days" class="desc">{{item.days}}天</text>
				<image class="icon" mode="widthFix" src="/static/commenmoration/add_icon.png" wx:else></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'item',
		props: {
			item: Object
		}
	}
</script>

<style lang="scss" scoped>
	.item {
		background-color: #fff;
		border-radius: 20rpx;
		padding: 0 30rpx;
		margin-top: 40rpx;
		box-shadow: 0 10rpx 50rpx 0 hsla(0, 0%, 80%, .3);
	}

	.content {
		border-bottom: 1px solid #eee;
		height: 120rpx;
		justify-content: space-between;
		width: 100%;
		align-items: center;
		display: flex;
	}

	.content .left {
		align-items: center;
		display: flex;

		.left-icon {
			height: 40rpx;
			margin-right: 24rpx;
			width: 40rpx;
		}

		.desc {
			color: #222;
			font-size: 28rpx;
		}
	}

	.right .desc {
		font-size: 28rpx;
		color: #999;
	}

	.right .icon {
		height: 30rpx;
		width: 30rpx;
	}
</style>
